<?php $this->load->view('sys_header');?>

<script type="text/javascript">


    function ajax_submit(){

        //验证表单


        editordescription.sync(); //同步编辑器数据
        editorability.sync(); //同步编辑器数据
        editorother.sync(); //同步编辑器数据
        $.ajax({
            type:"post",
            dataType:'json',
            url:'<?php echo made_admin_url('job/insert');?>',
            data:$('#cpform').serialize(),
            success:function(r){
                if(r && r.success)
                {
                    $.messager.confirm('成功提示', r.msg , function(b){
                        document.location.href = '<?php echo made_admin_url('job');?>';
                    });
                }
                else
                {
                    lin.msg(r.msg,'error');
                }
            }
        });

    }







</script>

<div class="nav">
    <h2><a href="<?php echo made_admin_url('main/mainfra');?>">TAYCMS后台管理</a> >  <a href="<?php echo made_admin_url('job');?>">招聘管理</a> > <a href="<?php echo made_admin_url('job/add');?>">添加</a> </h2>
</div>



<div class="contenter">
    <div class="addpage">
    <h1></h1>
    <div class="ml"></div>

    <div id="editform">

        <form name="cpform" method="post" autocomplete="off"    id="cpform"   >

            <table  width="100%" border="0" align="left" cellpadding="0" cellspacing="0" >
                <TR>
                    <TD width="100%">

                        <table width="95%" border="0" align="center" cellpadding="3" cellspacing="0"  >
                            <tr>
                                <td width="12%" height="30">职位名称：</td>
                                <td width="88%"><label>
                                    <input type="text" name="position" id="position" class="border" value="" size="50" />
                                </label></td>
                            </tr>

                            <tr>
                                <td height="30">招聘人数：</td>
                                <td><label>
                                    <input type="text" name="number" id="number" size="50" class="border" value="" />
                                </label></td>
                            </tr>

                            <tr>
                                <td height="30">性别要求：</td>
                                <td><label>
                                    <select name="sex">
                                        <option value="0" selected="selected">不限</option>
                                        <option value="1">男</option>
                                        <option value="2">女</option>
                                    </select>
                                </label></td>
                            </tr>

                            <tr>
                                <td height="30">工作地区：</td>
                                <td><label>
                                    <input type="text" name="area" id="area" size="50" class="border" value="" />
                                </label></td>
                            </tr>

                            <tr>
                                <td height="30">薪水范围：</td>
                                <td><label>
                                    <input type="text" name="wage" id="wage" size="50" class="border" value="" />
                                </label></td>
                            </tr>

                            <tr>
                                <td height="30">工作年限：</td>
                                <td><label>
                                    <input type="text" name="workinglife" id="workinglife" size="50" class="border" value="" />
                                </label></td>
                            </tr>

                            <tr>
                                <td height="30">工作性质：</td>
                                <td><label>
                                    <input type="text" name="category" id="category" size="50" class="border" value="" /> 全职  兼职等
                                </label></td>
                            </tr>

                            <tr>
                                <td height="30">工作部门：</td>
                                <td><label>
                                    <input type="text" name="department" id="department" size="50" class="border" value="" />
                                </label></td>
                            </tr>

                            <tr>
                                <td height="30">接受简历语言：</td>
                                <td><label>
                                    <input type="text" name="resumelanguage" id="resumelanguage" size="50" class="border" value="" />
                                </label></td>
                            </tr>

                            <tr>
                                <td height="30">学历要求：</td>
                                <td><label>
                                    <input type="text" name="degree" id="degree" size="50" class="border" value="" />
                                </label></td>
                            </tr>

                            <tr>
                                <td height="30">年龄要求：</td>
                                <td><label>
                                    <input type="text" name="age" id="age" size="50" class="border" value="" />
                                </label></td>
                            </tr>

                            <tr>
                                <td height="30">发布时间：</td>
                                <td><label>
                                    <input type="text" name="addtime" id="addtime" size="30" readonly="readonly"  class="easyui-datebox border" style="width: 140px;" value="" />
                                    请使用正确格式如：2012-03-25</label></td>
                            </tr>

                            <tr>
                                <td height="30">截至日期：</td>
                                <td><label>
                                    <input type="text" name="endtime" id="endtime" size="30" readonly="readonly"  class="easyui-datebox border" style="width: 140px;" value="" />
                                    请使用正确格式如：2012-03-25</label></td>
                            </tr>


                            <tr>
                                <td>职位描述：</td>
                                <td>
                                <?php echo load_editor('','description','700px','300px',1); ?>
                                </td>
                            </tr>

                            <tr>
                                <td>能力要求：</td>
                                <td>
                                    <?php echo load_editor('','ability','700px','300px',1); ?>
                                </td>
                            </tr>

                            <tr>
                                <td>其他说明：</td>
                                <td>
                                    <?php echo load_editor('','other','700px','300px',1); ?>
                                </td>
                            </tr>

                            <tr>
                                <td height="30">点击量：</td>
                                <td><label>
                                    <input type="text" name="hits" id="hits" size="10" class="border" value="" />
                                      </label></td>
                            </tr>




                        </table>


                    </TD>
                </TR>
                <tr>
                    <td height="30" colspan="2" align="center">
                        <br><br>
                        <label>
                        <input name="submit" type="button" id="submit" value="提交" onclick="ajax_submit()"   class="sub_btn" />
                    </label>
                        <label>
                            <input name="re" type="button" id="re" value="返回" onclick="window.location.href='<?php echo made_admin_url('job');?>'"   class="sub_btn" />
                        </label>
                    </td>
                </tr>
            </table>


        </form>


    </div>

</div>
</div>







<?php $this->load->view('sys_footer');?>